-- GENERATED SPELL FOR [King Mukla] --


function spell0_1559(pUnit, Event) --@Intimidation,n/a--
pUnit:FullCastSpellOnTarget(7093,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1559', 3000, 1)
end

function spell1_1559(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(5568,pUnit)
pUnit:RegisterEvent('Sorts_1559', 637, 1)
end

function Sorts_1559(pUnit, Event)
local choix_sorts_1559 = math.random(0, 1)
if choix_sorts_1559 == 0 then
pUnit:RegisterEvent('spell0_1559', 1, 1)
end
if choix_sorts_1559 == 1 then
pUnit:RegisterEvent('spell1_1559', 1, 1)
end
end

function mob1559_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1559', math.random(1500, 3000), 1)
end

function mob1559_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1559_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1559_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1559, 1, 'mob1559_Action')
RegisterUnitEvent(1559, 2, 'mob1559_Leave')
RegisterUnitEvent(1559, 3, 'mob1559_Kill')
RegisterUnitEvent(1559, 4, 'mob1559_Die')
